package com.shop.front.dao.user;

import com.shop.jpa.BaseDao;
import com.shop.domain.user.UserSignIn;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Repository
public interface UserSignInDao extends BaseDao<UserSignIn, Long> {

    @Query("from UserSignIn where createTime >= ?1 and createTime <= ?2 and uid= ?3")
    public UserSignIn findUserSignInByCreateTime(Date startTime,Date endTime,Long uid);

}
